/**
 * @Author:Geln Yang
 * @Created:2008-7-27
 * $ Revision: 1.0 $
 * $ Author: Geln Yang $
 * $ Date: 2008-7-27 $
 */
package org.geln.web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.geln.web.container.Application;
import org.geln.web.container.SpringContainer;

/**
 * @Author:Geln Yang
 * @Created:2008-7-27
 */
public class DefaultApplicationSetupListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent event) {
        SpringContainer container = new SpringContainer(event.getServletContext());
        Application.getInstance().setContainer(container);
    }

    public void contextDestroyed(ServletContextEvent arg0) {
    }

}
